import request from '@/utils/request'

export function ss(data) {
  return request({
    url: '/teachingResearch/saveReport',
    method: 'post',
    data
  })
}


// 查询教研报告
export function teachingResearchReportPage(data) {
  return request({
    url: '/teachingResearch/reportPage',
    method: 'post',
    data
  })
}


// 查询教研

export function teachingResearch(data) {
  return request({
    url: '/teachingResearch/search',
    method: 'post',
    data
  })
}

// 教研报告详情
export function getTeachingResearchReport(params) {
  return request({
    url: '/teachingResearch/getTeachingResearchReport',
    method: 'get',
    params: params
  })
}

// 上传教研报告
export function saveReport(data) {
  return request({
    url: '/teachingResearch/saveReport',
    method: 'post',
    data
  })
}

// 更新教研报告
export function updateReport(data) {
  return request({
    url: '/teachingResearch/updateReport',
    method: 'post',
    data
  })
}

// 删除教研报告
export function deleteReport(params) {
  return request({
    url: '/teachingResearch/deleteReport',
    method: 'post',
    params: params
  })
}

// /personPrepareLesson/getTemplate

export function getTemplate(data) {
  // {
  //   "editToolType": "UEDITOR(Ueditor)",
  //   "resType": "TEACHING(教案)",
  //   "teachingDesignId": 1
  // }
  return request({
    url: '/personPrepareLesson/getTemplate',
    method: 'post',
    data
  })
}
export function autoParse(params) {
  return request({
    url: '/personPrepareLesson/autoParse',
    method: 'post',
    params
  })
}

// 查询我的教研
export function getMyTeachingResearch(params) {
  return request({
    url: '/teachingResearch/getMyTeachingResearch',
    method: 'post',
    data: params
  })
}

// 未上传报告的教研
export function listUnSaveReportTeachingResearch(params) {
  return request({
    url: '/teachingResearch/listUnSaveReportTeachingResearch',
    method: 'post',
    data: params
  })
}

// 课堂实录
export function saveResCourseVideo(params) {
  return request({
    url: '/personPrepareLesson/saveResCourseVideo',
    method: 'post',
    data: params
  })
}

export function saveResTeaching(params) {
  return request({
    url: '/personPrepareLesson/saveResTeaching',
    method: 'post',
    data: params
  })
}
// 保存课件
export function saveResCourseware(data) {
  return request({
    url: '/personPrepareLesson/saveResCourseware',
    method: 'post',
    data
  })
}

//编辑教学反思
export function saveResTeachingReflection(data) {
  return request({
    url:"/personPrepareLesson/saveResTeachingReflection",
    method: 'post',
    data
  })
}

